#include "mainwindow.h"
#include "logindialog.h"
#include "inputdialog.h"
#include <QApplication>

//#include<QMessageBox>
//QMessageBox::information(this, "message", ui->lineEdit->text());


int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    MainWindow w;
    LoginDialog loginW;//登录
    InputDialog inW;

    if(loginW.exec() == QDialog::Accepted)
    {
        w.show();
        return a.exec();
    }

     else return 0;
}
